﻿using System;

namespace Sharp.Portal
{
    /// <summary>
    /// 定义小节
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class SectionAttribute : Attribute
    {
        /// <summary>
        /// 定义小节
        /// </summary>
        /// <param name="title"></param>
        public SectionAttribute(string title)
        {
            Title = title;
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// Ext用上这个Action调用
        /// </summary>
        public string ItemsFromAction { get; set; }
        /// <summary>
        /// 路由数据
        /// </summary>
        public string RouteValues { get; set; }
    }
}